﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class mygo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {//用于根据Session中的"type"值进行页面重定向
        if (Session["type"] != null)
        {
            if (Session["type"].ToString().Trim() == "0")
            {
                Response.Redirect("left.aspx");
            }

            else if (Session["type"].ToString().Trim() == "1")
            {
                Response.Redirect("left1.aspx");
            }

            else if (Session["type"].ToString().Trim() == "2")
            {
                Response.Redirect("left2.aspx");
            }
            else
            {
                Response.Redirect("left.aspx");
            }
        }
        else
        {
            Response.Redirect("left.aspx");
        }
    }
}
